<!--
 * @Date: 2023-10-18 14:56:15
 * @LastEditTime: 2024-02-01 14:06:23
-->
<template>
  <div class="main">
    <div class="n-banner xn-newsinfo-banner">
      <img src="assets/global/img/img_新闻.jpg" alt="Banner">
    </div>
    <div class="w1200 about-box ovh xn-gsgw-newsinfo">
      <div class="info-box">
        <div class="info-words" deep="2">
          <div class="col-md-1 col-sm-1"></div>
          <div class="col-md-9 col-sm-9">
            <div class="content-page">
                <!-- 标题 -->
              <h1 align="center">{{currentData.title}}</h1>
              <!-- 作者-日期-内容 -->
              <h4 align="center" class="atinfo" v-show="currentData.author">
                  <span>作者：{{currentData.author}}</span>
                  <span>来源：{{currentData.from}}</span>
                  <span>{{currentData.date}}</span>
              </h4>
              <!-- 内容 -->
              <div class="article-content" v-html="currentData.content"></div>
            </div>
          </div>
        </div>
      </div>
    </div>


  </div>
</template>
<script>
  import dynamicsList from './dynamics'
  export default {
    components: {},
    data() {
      let that = this;
      return {
        currentData:{}
      };
    },
    methods: {},
    mounted() { 
        let id= this.$route.query.id;
        this.currentData = dynamicsList.find(news=>{
            return news.id == id;
        })
    },
    created() { },
  };
</script>
<style lang="less">
.article-content{
    margin-top:30px;
    padding-bottom: 56px;
}
.atinfo{
  display: flex;
  justify-content: space-around;
  span{
    font-size: 14px;
    color:#2b498c
  }
  
}
.content-page h4 {
    font-size: 17px;
    line-height: 30px;
	  margin-bottom: 4px;
}
.content-page h3 {
    font-weight: bold;
    font-size: 16px;
    line-height: 30px;
	  margin-bottom: 4px;
}
.content-page h5 {
    font-weight: bold;
    font-size: 14px;
    line-height: 30px;
	margin-bottom: 4px;
}
.info-words p{
    margin-bottom:10px;
}
.info-words p:last-child{
    margin-bottom:20px;
}
</style>